(function($){
	$.fn.selectChoose=function(options){
		var defaults = {"timeString": 31, "startTime":1, "starString": "Chọn...", "type":"selText"};
		var optionStr = $.extend({}, defaults, options);
		var $select = $(this);
		
		//Set value on select options
		if(optionStr.type==="datePic")
		{
			$(this).html("");
			$(this).append(new Option(optionStr.starString));
			for(var i=optionStr.startTime; i<=optionStr.timeString;i++)
			{
				$(this).append(new Option(i, i));
			}
		}
		else if(optionStr.type==="selText")
		{
			$(this).html("");
			var $sel = $(this);
			$(this).append(new Option(optionStr.starString));
			$.each(optionStr.arrVal, function(index, value){
				$sel.append(new Option(value, index));
			})
			
		}
		//Set text after change selection
		
	}
}(jQuery))